package cn.edu.zafu.bigdata.x.yaojy;

import java.util.Arrays;
import java.util.List;

public class TestFindM {
    public static void main(String[] args) {
        List<Integer> intlist = Arrays.asList(1,2,8,5,7,9);
        Integer maxInt = FindM.findMax(intlist);
        System.out.println("整数列表最大值：" + maxInt);

        List<String> strlist = Arrays.asList("app","bnn","alv","org");
        String maxStr = FindM.findMax(strlist);
        System.out.println("字符串列表最大值：" + maxStr);

    }
}
